class Settings:
    """存储整个游戏的设置信息"""

    def __init__(self):
        # 宽度
        self.width = 1200
        # 高度
        self.height = 800
        # 背景色
        self.bg_color = (250, 250, 250, 0)
        # 飞船多少条命
        self.ship_life = 3
        # 定义子弹配置
        self.bullet_width = 3
        self.bullet_height = 15
        self.bullet_color = (60, 60, 60)
        # 外星人配置
        self.fleet_drop_speed = 10
        self.fleet_direction = 1
        # 外星人速度
        self.alien_speed = 1
        # 外星人分数系数
        self.alien_score_factor = 1.5
        # 难度系数
        self.difficult_factor = 1.1
        # 初始难度
        self.init_dynamic_params()
        # 飞船速度
        self.ship_speed = 5
        # 子弹速度
        self.bullet_speed = 10

    def init_dynamic_params(self):
        # 外星人分数
        self.alien_score = 10
        # 外星人数量
        self.alien_nums = 2

    def increase_difficult(self):
        # self.ship_speed *= self.difficult_factor
        # self.bullet_speed *= self.difficult_factor
        self.alien_score *= self.alien_score_factor
        self.alien_nums *= self.difficult_factor
